package monitor.model.parameter;

public enum EcuParameterType {
	TEMPERATURE("t\u00B0", 0x05), SPEED("km/h", 0x0d), CONSUMPTION("l/100km", 0xff1207);
	
	public static String POSTFIX_MAX = "Max";
	public static String POSTFIX_AVG = "Avg";
	
	private String dimension;
	private long pid;
	
	EcuParameterType(String dimension, long pid) {
		this.dimension = dimension;
		this.pid = pid;
	}
	
	public String getDimension() {
		return this.dimension;
	}
	
	public String getNameAvg() {
		return this.name().toLowerCase() + POSTFIX_AVG;
	}
	
	public String getNameMax() {
		return this.name().toLowerCase() + POSTFIX_MAX;
	}

	public long getPid() {
		return pid;
	}
}
